package com.yunc.user.sys.mapper;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunc.common.mybatis.SuperMapper;
import com.yunc.user.sys.entity.SysMessage;
import com.yunc.user.sys.entity.vo.SysMessageSearchVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysMessageMapper extends SuperMapper<SysMessage> {

    List<SysMessage> pageInfo(Page<SysMessage> page, @Param("sysMessage") SysMessageSearchVO sysMessage);

    int getDayCount(@Param("beginDateTime") DateTime beginDateTime, @Param("endDateTime") DateTime endDateTime);

    int getDayCountUser(@Param("beginDateTime") DateTime beginDateTime, @Param("endDateTime") DateTime endDateTime, @Param("userId") String userId);

    int getCountUser(@Param("userId") String userId, @Param("status") String status);
}
